<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>



</head>
<body>
<h1>111111111111 ::  </h1>

<s:textfield name="paperId" label="Paper ID" ></s:textfield>
<s:textfield name="Quize" label="Quize" value=""></s:textfield>
<s:textfield name="Answer1" label="Answer1" ></s:textfield>


<s:form action="answserpaperlist" method="post">
<s:hidden name="paperId" label="Paper ID" ></s:hidden>
<s:iterator  value="paperdatalist" var="paper" >

    <p>  Question: <s:property  value="%{#paper.quizeId}" /></p><br />
   
	
		<div style="width: 90%;height: auto;border: 2px solid #5544BB;background-color: #DDFFDD;"id="${paper.quizeId}">
		
	
			<h1><s:property value="#paper.Quize"/> </h1>
			<!-- working but radio (need checkbox)
			
			<input type="radio" value="" name="quize${paper.quizeId}"  id="q${paper.quizeId}_1" /><label for="q${paper.quizeId}_1">Answer 1 : <s:property value="#paper.Answer1"/></label>
			<input type="radio" value=""  name="quize${paper.quizeId}" id="q${paper.quizeId}_2" /><label for="q${paper.quizeId}_2" > Answer 2 : <s:property value="#paper.Answer2"/> </label>
			<input type="radio" value=""  name="quize${paper.quizeId}" id="q${paper.quizeId}_3" /><label for="q${paper.quizeId}_3"> Answer 3 : <s:property value="#paper.Answer3"/> </label>
			<input type="radio" value=""  name="quize${paper.quizeId}" id="q${paper.quizeId}_4"/><label for="q${paper.quizeId}_4"> Answer 4 : <s:property value="#paper.Answer4"/> </label>
			<input type="radio" value=""  name="quize${paper.quizeId}" id="q${paper.quizeId}_5"/><label for="q${paper.quizeId}_5"> Answer 5 : <s:property value="#paper.Answer5"/> </label>
			<br/>
			!-->
		<input type="checkbox" value="" name="quize${paper.quizeId}_a"  id="q${paper.quizeId}_1" /><label for="q${paper.quizeId}_1">Answer 1 : <s:property value="#paper.Answer1"/></label>
			<input type="checkbox" value=""  name="quize${paper.quizeId}_b" id="q${paper.quizeId}_2" /><label for="q${paper.quizeId}_2" > Answer 2 : <s:property value="#paper.Answer2"/> </label>
			<input type="checkbox" value=""  name="quize${paper.quizeId}_c" id="q${paper.quizeId}_3" /><label for="q${paper.quizeId}_3"> Answer 3 : <s:property value="#paper.Answer3"/> </label>
			<input type="checkbox" value=""  name="quize${paper.quizeId}_d" id="q${paper.quizeId}_4"/><label for="q${paper.quizeId}_4"> Answer 4 : <s:property value="#paper.Answer4"/> </label>
			<input type="checkbox" value=""  name="quize${paper.quizeId}_e" id="q${paper.quizeId}_5"/><label for="q${paper.quizeId}_5"> Answer 5 : <s:property value="#paper.Answer5"/> </label>
			
		
		</div>
	
	</s:iterator>
	<s:submit value="Submit data" align="center"></s:submit>
	
</s:form>
</body>
</html>